package top.shen33.yang.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author oreilly
 * @since 2018-08-15
 */
public class MmallActivity extends Model<MmallActivity> {

private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
                    @TableId(value = "id", type = IdType.UUID)
                private Integer id;
    /**
     * 抢购商品id
     */
        private Integer productId;
        private String title;
        private String desc;
    /**
     * 抢购开始时间
     */
        private Date beginTime;
    /**
     * 抢购结束时间
     */
        private Date endTime;
        private Date createTime;
        private Date updateTime;


    public Integer getId() {
            return id;
            }

        public void setId(Integer id) {
            this.id = id;
            }

    public Integer getProductId() {
            return productId;
            }

        public void setProductId(Integer productId) {
            this.productId = productId;
            }

    public String getTitle() {
            return title;
            }

        public void setTitle(String title) {
            this.title = title;
            }

    public String getDesc() {
            return desc;
            }

        public void setDesc(String desc) {
            this.desc = desc;
            }

    public Date getBeginTime() {
            return beginTime;
            }

        public void setBeginTime(Date beginTime) {
            this.beginTime = beginTime;
            }

    public Date getEndTime() {
            return endTime;
            }

        public void setEndTime(Date endTime) {
            this.endTime = endTime;
            }

    public Date getCreateTime() {
            return createTime;
            }

        public void setCreateTime(Date createTime) {
            this.createTime = createTime;
            }

    public Date getUpdateTime() {
            return updateTime;
            }

        public void setUpdateTime(Date updateTime) {
            this.updateTime = updateTime;
            }

@Override
protected Serializable pkVal() {
            return this.id;
        }

@Override
public String toString() {
        return "MmallActivity{" +
                ", id=" + id +
                ", productId=" + productId +
                ", title=" + title +
                ", desc=" + desc +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
        "}";
        }
        }
